Salesforce UX API icon

Salesforce UX API

(0 reviews)

TMF678- listCustomer-V2

CASE 1 Unitary Test

This usecase is to retrieve bill history from evertec

URL
https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v2/PR/customerBill
URI Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, PR etc.) identifying the business unit.
Expected one is "PR"-Puerto Rico
Y
Query Param
nametypedescriptionrequired
billingAccount.idstringcustomer account idY
namevaluedescriptionrequired
client_idstringThe client_id identifying the channel.Y
client_secretstringPassword associated with the client_id.Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request
Y
Request
curl --location 'https://nonprod.esb.cloud.lla.com/dev/sfdc-ux/sfdc-ux/v2/PR/customerBill?billingAccount.id=821470133' \
--header 'client_id: 784c9a6dd7ae49768816cab57fcf1fa1' \
--header 'client_secret: 187b259EB77441babbF611d2646C670d' \
--header 'X-Correlation-ID: 25486246478547854785'
200 OK
Response
{
    "href": "string", //objectUrl
    "billDate": "2024-06-27T15:12:28.863Z", //cycleDate
    "characteristics": [
        {
            "valueType": "Object",
            "valueName": "billDetails",
            "value": {
                "viewed": "string",
                "pageCount": "1",
                "product": "string"
            }
        }
    ]
}
Definitions

Each of the request parameters is detailed.

nametypedescriptionrequired
hrefstringurl of the downloadable pdfN
billDatedatetimeBill dateN
characteristics.valueTypestringType of the valueN
characteristics.valueNamestringName of the valueN
characteristics.valueobjectvalue of characteristicN
characteristics.value.viewedstringvalue to represent the status of viewN
characteristics.value.pageCountstringpage count of the pdf fileN
characteristics.value.productstringproduct of the pdf fileN

Reviews